registerTests([
function Union_Test_0()
{
	var myArray = [1, 2, 3, 4];
	var mySecondArray = [2, 4, 5];
	//Returns [3, 4]
	var result = myArray.Union(mySecondArray);
	Assert.areEqual(result.length, 5);
	Assert.areEqual(result[0], 1);
	Assert.areEqual(result[1], 2)
	Assert.areEqual(result[2], 3);
	Assert.areEqual(result[3], 4)
	Assert.areEqual(result[4], 5);
},
function Union_Equality_Test_1()
{
	var myArray = [{x: 1}, {x: 2}, {x: 3}, {x: 4}];
	var mySecondArray = [{x: 2}, {x: 5}];
	//Returns [3, 4]
	var result = myArray.Union(mySecondArray, "(a, b) => a.x == b.x");
	Assert.areEqual(result.length, 5);
	Assert.areEqual(result[0].x, 1);
	Assert.areEqual(result[1].x, 2)
	Assert.areEqual(result[2].x, 3);
	Assert.areEqual(result[3].x, 4)
	Assert.areEqual(result[4].x, 5);
}
]);